package com.guo.dms.common.tree.entity;

import java.util.ArrayList;
import java.util.List;

import com.guo.dms.common.menu.entity.Menu;
/**
 * 树节点
 * @author Administrator
 *
 * @param <T>
 */
public class TreeNode<T extends Node> { 
	private T node;
	private List<TreeNode<T>> childs;
	
	public TreeNode() {
		super();
	}
	public TreeNode(T node) {
		super();
	    this.node = node;
		childs=new ArrayList<>();
	}
	public TreeNode(T node, List<TreeNode<T>> childs) {
		super();
		this.node = node;
		this.childs = childs;
	}
	public T getNode() {
		return node;
	}
	public void setNode(T node) {
		this.node = node;
	}
	public List<TreeNode<T>> getChilds() {
		return childs;
	}
	public void setChilds(List<TreeNode<T>> childs) {
		this.childs = childs;
	}
	@Override
	public String toString() {
		return "TreeNode [node=" + node + ", childs=" + childs + "]";
	}
	 
 
	
}
